package com.bw.client;

import com.bw.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value ="user-server")
public interface Myclient {
    @RequestMapping("SelectByToken")
    public User SelectByToken(@RequestParam(defaultValue = "token", required = false) String token);


}
